<template>
	<view>
		<view style="background-color: lavender;">
			<!-- 搜索 -->
			<view class="search-container">
				<view class="search-entry" style="background-color:rgba(0, 0, 0, 0.1);border-radius: 25rpx;" v-if="isShowSearch">
					<image class="icon-prod-search" src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon/search/icon-search-gray.png"></image>
					<text class="search-text">请输入产品品类，如空调、洗衣机</text>
				</view>
				<view class="btn-group">
					<view class="btn btn-scan-code" v-if="isShowScan">
						<image src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon/scan/icon-scan-black.png"></image>
						<view class="text">扫机身码</view>
					</view>
	<!-- 				<view catch:tap="appliancePickerHandler" class="btn btn-my-appliance" v-if="isShowMyApplianceBtn">
						<image src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon-appliance-black.png"></image>
						<view class="text">可选家电</view>
					</view> -->
				</view>
			</view>
			<view class="scroll-box">
				<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll">
					<view id="demo1" class="scroll-item">A</view>
					<view id="demo2" class="scroll-item">B</view>
					<view id="demo3" class="scroll-item">C</view>
					<view id="demo1" class="scroll-item">A</view>
					<view id="demo2" class="scroll-item">B</view>
					<view id="demo3" class="scroll-item">C</view>
					<view id="demo1" class="scroll-item">A</view>
					<view id="demo2" class="scroll-item">B</view>
					<view id="demo3" class="scroll-item">C</view>
					<view id="demo1" class="scroll-item">A</view>
					<view id="demo2" class="scroll-item">B</view>
					<view id="demo3" class="scroll-item">C</view>
				</scroll-view>
				<view @click="showTop=true" class="scroll-view-down">
					<uni-icons type="down" color="gainsboro" size="20"></uni-icons>
				</view>
				<u-popup :show="showTop" mode="top"  @close="close" @open="open">
					<view class="brand-box">
						<view style="font-size: 26rpx;color: gray;">全部品牌</view>
						<uni-icons @click="showTop=false" type="closeempty" color="gainsboro" size="22"></uni-icons>
					</view>
					<view class="brand-list">
						<view v-for="(item,index) in brandList" class="brand-li" @click="brand(index)">{{item}}</view>
					</view>
	<!-- 				 <u-row>
						<u-col span="3">
							<view class="demo-layout bg-purple-light"></view>
						</u-col>
						<u-col span="3">
							<view class="demo-layout bg-purple"></view>
						</u-col>
						<u-col span="3">
							<view class="demo-layout bg-purple"></view>
						</u-col>
						<u-col span="3">
							<view class="demo-layout bg-purple"></view>
						</u-col>
					</u-row> -->
				</u-popup>
			</view>
			<view style="display: flex;">
				<view class="index-left">
					<view v-for="item in indexList">
						<view class="index-left-li">{{item}}
							<view class="index-left-one"></view>
							<u-badge class="index-left-badge" max="99" :value="value"></u-badge>
						</view>
						
					</view>
				</view>
				<view class="index-right">
					<template v-for="(item, index) in itemArr">
						<view class="index-box-list">
							<view  class="index-box-title">{{indexList[index]}}</view>
							<view class="index-box-li">
								<view class="list-cell" v-for="(cell, child) in item">
									{{cell.name}}
									<view class="list-cell-icon">+</view>
									<u-icon @click="product(cell,index,child)" class="list-cell-icon" name="plus-circle" color="blue" size="15"></u-icon>
								</view>
							</view>
						</view>
					</template>
				</view>
		
			</view>
			
		</view>
		<view class="footer-box">
			<view style="padding: 12px 16px 12px 12px;">
				<view class="flex-btn">
					<image class="icon-box" src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon/unclassified/icon-select-box.png"></image>
					<view catch:tap="showSelectList" class="select-counter"> 已选择{{number}}个产品 <image @click="showBottom=true" src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon/arrow/icon-arrow-top-black.png"></image>
						<!-- <image src="https://cs.midea.com/c-css/front/wechat/miniprogram-midea-one/icon/arrow/icon-arrow-bottom-black.png"></image> -->
					</view>
					<view style="background-color: cornflowerblue;" @click="choiced" class="submit-btn">选好了</view>
				</view>
			</view>
			<u-popup :show="showBottom" mode="bottom"  @close="close" @open="open">
				<view class="poput-box">
					<view class="poput-title">
						<view>
							<uni-icons class="poput-title-icon" type="closeempty" size="25"></uni-icons>
						</view>
						<view class="poput-title-text">
							查看已选产品
						</view>
						<view>
							<u-icon class="poput-title-icon" @click="showBottom=false" name="close" color="royalblue" size="15"></u-icon>
						</view>
					</view>
					<view>
						<view v-for="(item,index) in productData" class="poput-list">
							<view class="poput-list-left">
								<view>{{item.name}}</view>
							</view>
							<view class="poput-list-right">
								<u-icon @click="reduct(index)" name="minus-circle"></u-icon>
								{{item.num}}
								<u-icon @click="add(index)" name="plus-circle"></u-icon>
							</view>
						</view>
					</view>
				</view>
				 <u-toast ref="uToast"></u-toast>
			</u-popup>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				productData:[],
				number:0,
				value:10,
				indexList: ["空调", "洗衣机", "热水器"],
				brandList:["美的", "海尔", "美博"],
				itemArr: [
					[
						{
							imgUrl:"",
							name:"空调",
							id:"1",
							num:0
						},
						{
							imgUrl:"",
							name:"空调",
							id:"2",
							num:0
						},
						{
							imgUrl:"",
							name:"空调",
							id:"3",
							num:0
						},
						
						{
							imgUrl:"",
							name:"空调",
							id:"4",
							num:0
						},
					],
					[
						{
							imgUrl:"",
							name:"洗衣机",
							id:"5",
							num:0
						},
					]
				],
				gutter: 0,
				nvueWidth: 730,
				isShowSearch:true,
				isShowMyApplianceBtn:true,
				isShowScan:true,
				showTop:false,
				showBottom:false,
				productInfoList:[{}],
				isLoading:"",
				installOrderList:[{}]
			}
		},
		methods: {
			choiced(){
				uni.setStorageSync('installParams', this.productData);
				uni.navigateTo({
					url: "/pages/index/afterSales/afterSales?code=install&name=安装"
				});
			},
			add(index){
				console.log(index);
				this.productData[index].num=this.productData[index].num+1;
			},
			reduct(index){
				if (this.productData[index].num===1) {
					this.productData.splice(index,1)
					return
				}
				this.productData[index].num=this.productData[index].num-1;
			},
			product(data,index,index2){
				
				// this.$refs.uToast.show({
				// 	 type: "default",
				// 	 message: "添加成功"
				// })
				
				this.itemArr[index][index2].num=this.itemArr[index][index2].num+1;
				if(this.productData.length>=1){
					for(var i=0;i<this.productData.length;i++){
						if(this.productData[i].id===this.itemArr[index][index2].id){
							this.productData[i] = this.itemArr[index][index2];
						}else{
							this.productData.push(this.itemArr[index][index2]);
						}
					}
				}else{
					this.productData.push(this.itemArr[index][index2]);
				}
				
		
				this.number=this.productData.length;
				console.log(this.productData);
			},
			 open() {
				// console.log('open');
			  },
			  brand(){
				  this.showTop=false
			  },
			  close() {
				this.show = false
				// console.log('close');
			  }
		}
	}
</script>

<style lang="scss" scoped>
	.poput-list-right{
		display: flex;
	}
	.poput-list-left{
		display: flex;
	}
	.poput-list{
		border-radius: 15rpx;
		margin: 20rpx;
		height: 100rpx;
		padding: 0rpx 20rpx 0rpx 20rpx;
		background-color: white;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.poput-title-icon{
		position: absolute;
		right:25rpx;
		top:25rpx;
	}
	.poput-box{
		border-radius: 15rpx 15rpx 0rpx 0rpx;
		height: 600rpx;
		position: relative;
		background-color: #eaf3fe;
		z-index:999;
	}
	.poput-title-text{
		text-align: center;
		font-size: 30rpx;
	}
	.poput-title{
		padding: 20rpx;
		display: flex;
		justify-content: space-between;
	}
	.index-left-badge{
		width: 10rpx;
		height: 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		top:10rpx;
		right: 4rpx;
	}
	.index-left-one{
		width: 6rpx;
		height: 30rpx;
		background-color: dodgerblue;
		border-radius: 0rpx 15rpx 15rpx 0rpx;
		position: absolute;
		top: 30%;
	}
	.index-left-li{
		display: inline-block;
		text-align: center;
		background-color: white;
		width: 100%;
		height: 70rpx;
		line-height: 70rpx;
		border-radius:0rpx 15rpx 15rpx 0rpx;
		position: relative;
	}
	.index-left-selected{
		
	}
	.index-box-li{
		display: flex;
		flex-wrap: wrap;
		padding: 20rpx;
	}
	.index-box-title{
		border-radius: 15rpx;
		border-color: white;
		height: 70rpx;line-height: 70rpx;padding-left: 20rpx;
		border-bottom: 2rpx solid gainsboro;
		
	}
	.index-box-list{
		border-radius: 15rpx;
		background-color: white;
		margin: 10rpx;
	}
	.index-left{
		width:18%;
		padding-top:10rpx;
	}
	.index-right{
		width:87%;
	}
	.list-cell {
		text-align: center;
		width: 31%;
		height:100rpx;
		color: #323233;
		background-color: lawngreen;
		margin: 1.1%;
		box-sizing: border-box;
		position:relative;
		
	}
	.list-cell-icon{
		position:absolute;
		top:-15rpx;
		right:-15rpx;
		width: 30rpx;
		height: 30rpx;
		border-radius: 50%;
		border:1rpx solid black;
	}
	.brand-list{
		display: flex;
	}
	.brand-li{
		width:20%;
		height:100rpx;
		margin: 2%;
		background-color: cornflowerblue;;
	}
	.brand-box{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx;
		border-bottom: 2rpx solid gainsboro;
	}
	.scroll-box{
		position: relative;
	}
	.scroll-view-down{
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: white;
		width: 70rpx;
		height: 130rpx;
		box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.5);
		position: absolute;
		top:0rpx;
		right:0rpx;
	}
	.scroll-view_H {
		background-color: white;
		white-space: nowrap;
		width: 100%;
		height: 130rpx;
	}
.scroll-item{
	display: inline-block;
	width: 120rpx;
	height:80rpx;
	text-align: center;
	background-color: white;
	margin: 20rpx 0rpx 20rpx 20rpx;
	border-radius: 15rpx;
	border:1rpx solid royalblue;
}
.scroll-item-selected{
	border:1rpx solid yellow;
}
.page-multi-product-picker {
  background: var(--page-bg-color--);
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}
.picker-content {
  -webkit-overflow-scrolling: touch;
  display: -webkit-flex;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: scroll;
  position: relative;
}
.picker-content .block-no-data image {
  display: block;
  height: 140px;
  margin: 120px auto 0;
  width: 140px;
}
.picker-content .block-no-data .desc-text {
  color: var(--text-normal-color--);
  font-size: 13px;
  line-height: 22px;
  padding-top: 10px;
  text-align: center;
}
.search-container {
  background: #fff;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  padding: 8px 6px 8px 12px;
  width: 100%;
}
.search-container .search-entry {
  align-items: center;
  background: var(--text-or-input-bg-color--);
  border-radius: var(--btn-border-radius--);
  display: -webkit-flex;
  display: flex;
  flex: 1;
  height: 36px;
  line-height: 34px;
}
.search-container .search-entry .search-text {
  color: var(--text-tips-color--);
  flex: 1;
  font-size: 14px;
  line-height: 1;
  margin-left: 4px;
  color:gray;
}
.search-container .search-entry .icon-prod-search {
  height: 16px;
  margin-left: 16px;
  width: 16px;
}
.search-container .btn-group {
  display: -webkit-flex;
  display: flex;
  padding-left: 6px;
}
.search-container .btn-group .btn {
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  width: 52px;
}
.search-container .btn-group .btn image {
  display: block;
  height: 20px;
  margin: 0 auto;
  width: 20px;
}
.block-brand-list {
  background: #fff;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  height: 71px;
  overflow: scroll;
  padding: 3px 12px 5px;
}
scroll-view.block-brand-list {
  padding-right: 50px;
}
.block-brand-list::-webkit-scrollbar {
  display: none;
}
.block-brand-list .brand-item {
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 53px;
  margin: 5px 12px 5px 0;
  width: calc((100% - 36px) / 4);
}
.block-brand-list .brand-item.active {
  border-color: var(--brand-main-color--);
}
.block-brand-list .brand-item .brand-logo {
  border-radius: 6px;
  display: block;
  height: 51px;
  width: 100%;
}
.block-brand-list-scroll {
  height: 71px;
  position: relative;
}
.block-brand-list-scroll .shadow-box {
  height: 71px;
  pointer-events: none;
  position: absolute;
  right: 50px;
  top: 0;
  width: 16px;
}
.block-brand-list-scroll .btn-expand {
  background: #fff;
  height: 16px;
  padding: 27.5px 17px;
  position: absolute;
  right: 0;
  top: 0;
  width: 16px;
}
.block-brand-list-scroll .block-brand-list .brand-item.has-mg-right {
  margin-right: 40px;
}
.block-brand-list-fixed-wrap {
  background: rgba(0, 0, 0, 0.7);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 31;
}
.block-brand-list-fixed-wrap .block-title {
  background: #fff;
  color: var(--text-normal-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  padding: 14px 12px;
}
.block-brand-list-fixed-wrap .block-title .btn-close {
  height: 24px;
  padding: 13px 12px;
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
}
.block-brand-list-fixed-wrap .block-brand-list {
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
  height: auto;
}
.block-brand-list-fixed-wrap .block-brand-list .brand-item:nth-child(4n) {
  margin-right: 0;
}
.brand-list {
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 15px;
}
.brand-name {
  color: var(--text-main-color--);
  font-family: PingFang-SC-Regular, sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.brand-img {
  display: block;
  height: 100%;
  margin: 0 auto;
  width: 100%;
}
.brand-item {
  border-radius: 8px;
  height: 64px;
  margin-top: 16px;
  overflow: hidden;
  width: 47.828%;
}
.select-product {
  display: -webkit-flex;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.select-product-tips {
  align-items: center;
  color: var(--text-main-color--);
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  padding-left: 15px;
  position: relative;
}
.select-box,
.select-product-tips {
  display: -webkit-flex;
  display: flex;
}
.select-box {
  background: var(--page-bg-color--);
  flex: 1;
  overflow: hidden;
}
.kind-list {
  margin-top: 10px;
  overflow-y: auto;
  width: 80px;
}
.kind-list::-webkit-scrollbar {
  display: none;
}
.kind-item {
  color: var(--text-second-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 13px;
  font-weight: 400;
  height: 50px;
  line-height: 50px;
  position: relative;
  text-align: center;
}
.kind-item.select-kind {
  background: #fff;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.select-kind::after {
  background: var(--brand-main-color--);
  border-radius: 0 2px 2px 0;
  content: '';
  display: block;
  height: 18px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.6px;
}
.product-list {
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  flex: 1;
  margin: 10px 8px;
  overflow-y: scroll;
}
.product-kind:last-child {
  min-height: calc(100% - 10px);
}
.product-kind {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  padding-bottom: 16px;
  padding-left: 12px;
  position: relative;
}
.kind-name {
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  padding-top: 16px;
}
.kind-badge {
  background: var(--fail-main-color--);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  height: 14px;
  line-height: 14px;
  position: absolute;
  right: 8px;
  text-align: center;
  top: 11px;
  width: 14px;
}
.product-item {
  display: inline-block;
  font-size: 0;
  margin-top: 16px;
  text-align: center;
  vertical-align: top;
  width: 27.72%;
}
.product-item:nth-child(3n + 3) {
  margin-left: 4.25vw;
  margin-right: 4.25vw;
}
.product-img-box {
  position: relative;
}
.product-img {
  background-color: var(--text-or-input-bg-color--);
  border-radius: 4px;
  height: 74px;
  object-fit: contain;
  width: 74px;
}
.product-add-icon {
  height: 16px;
  padding: 2px;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 16px;
}
.product-name {
  color: var(--text-second-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  padding-top: 2px;
  text-align: center;
}
.footer-box {
  background: #fff;
  box-shadow: 0-1px 8px 0 rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
  width: 100vw;
  position: fixed;
  bottom: 0;
  left: 0;
}
.footer-box .flex-btn {
  border-radius: 22px;
  display: -webkit-flex;
  display: flex;
  width: 100%;
}
.footer-box .flex-btn .icon-box {
  height: 44px;
  width: 44px;
}
.footer-box .flex-btn .select-counter {
  align-items: center;
  color: var(--text-main-color--);
  display: -webkit-flex;
  display: flex;
  flex: 1;
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding-left: 8px;
}
.footer-box .flex-btn .select-counter image {
  height: 16px;
  padding: 3px;
  width: 16px;
}
.footer-box .flex-btn .submit-btn {
  background: var(--brand-main-color--);
  border-radius: 22px;
  color: #fff;
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  width: 140px;
}
.select-product-box {
  z-index: 1;
}
.select-product-list {
  background: var(--page-bg-color--);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  bottom: 0;
  box-sizing: border-box;
  height: 374px;
  overflow-y: scroll;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 16px;
  padding-right: 16px;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.select-product-list .title {
  background: var(--page-bg-color--);
  color: var(--text-title-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  padding: 18px 0;
  position: -webkit-sticky;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 2;
}
.select-product-list .title image {
  height: 24px;
  padding: 4px;
  position: absolute;
  right: -4px;
  top: 14px;
  width: 24px;
}
.select-product-list .select-product-item {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: -webkit-flex;
  display: flex;
  margin-bottom: 10px;
  padding: 10px 12px;
  position: relative;
}
.select-product-list .select-product-item .select-product-item-img {
  background-color: var(--text-or-input-bg-color--);
  height: 48px;
  object-fit: contain;
  width: 48px;
}
.select-product-list .select-product-item .select-product-item-name {
  color: var(--text-main-color--);
  flex: 1;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 20px;
  margin-left: 11px;
}
.select-product-list .select-product-item .select-product-operate {
  display: -webkit-flex;
  display: flex;
}
.select-product-list .select-product-item .select-product-operate .btn {
  height: 22px;
  width: 22px;
}
.select-product-list .select-product-item .select-product-operate .select-product-item-num {
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 24px;
  min-width: 25px;
  padding: 0 8.5px;
}
.mark {
  background: rgba(0, 0, 0, 0.6);
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
.add-animate {
  height: 100vh;
  position: fixed;
  width: 100vw;
}
.add-item {
  animation: addAnimate 0.5s ease-in;
  border-radius: 50%;
  height: 70px;
  overflow: hidden;
  position: absolute;
  width: 70px;
}
@-webkit-keyframes addAnimate {
  0% {
    transform: scale(1.5);
  }
  20% {
    transform: translate(-100%, -100%);
  }
  to {
    left: 30px;
    top: 100vh;
    transform: scale(0.2);
    -webkit-transform: translate(0 0);
    transform: translate(0 0);
  }
}
@keyframes addAnimate {
  0% {
    transform: scale(1.5);
  }
  20% {
    transform: translate(-100%, -100%);
  }
  to {
    left: 30px;
    top: 100vh;
    transform: scale(0.2);
    -webkit-transform: translate(0 0);
    transform: translate(0 0);
  }
}
.disabled-cover {
  background: #fff;
  border-radius: 12px;
  height: 100%;
  left: 0;
  opacity: 0.6;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.block-my-appliance {
  background: rgba(0, 0, 0, 0.7);
  bottom: 0;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}
.block-my-appliance .block-title {
  background: var(--page-bg-color--);
  border-radius: 16px 16px 0 0;
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
  padding: 18px 16px 17px;
  position: relative;
  text-align: center;
}
.block-my-appliance .block-title .btn-close {
  height: 22px;
  position: absolute;
  right: 13px;
  top: 19px;
  width: 22px;
}
.block-my-appliance .appliance-list {
  -webkit-overflow-scrolling: touch;
  background: var(--page-bg-color--);
  height: 380px;
  overflow-y: auto;
  padding: 0 16px env(safe-area-inset-bottom);
}
.block-my-appliance .appliance-list .appliance-item {
  background: #fff;
  border-radius: 12px;
  display: -webkit-flex;
  display: flex;
  margin: 0 auto 10px;
  padding: 12px 16px;
}
.block-my-appliance .appliance-list .appliance-item.is-disabled {
  filter: grayscale(100%);
  opacity: 0.55;
}
.block-my-appliance .appliance-list .appliance-item .appliance-img {
  height: 72px;
  object-fit: contain;
  width: 72px;
}
.block-my-appliance .appliance-list .appliance-item .appliance-content {
  flex: 1;
  margin-left: 12px;
}
.block-my-appliance .appliance-list .appliance-item .appliance-content .brand-type-warranty {
  align-items: center;
  display: -webkit-flex;
  display: flex;
  padding-bottom: 4px;
}
.block-my-appliance .appliance-list .appliance-item .appliance-content .brand-type-warranty .brand-type {
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
.block-my-appliance .appliance-list .appliance-item .appliance-content .brand-type-warranty .warranty-status {
  background: rgba(183, 187, 199, 0.16);
  border-radius: 4px;
  color: #51555d;
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 10px;
  font-weight: 400;
  height: 16px;
  line-height: 16px;
  margin-left: 8px;
  padding: 0 4px;
}
.block-my-appliance .appliance-list .appliance-item .appliance-content .brand-type-warranty .warranty-status.active {
  background: #eaf3fe;
  color: var(--brand-main-color--);
}
.block-my-appliance .appliance-list .appliance-item .appliance-content .base-column {
  color: var(--text-second-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}
.block-my-appliance .appliance-list .no-data-image {
  display: block;
  height: 140px;
  margin: 40px auto 0;
  width: 140px;
}
.block-my-appliance .appliance-list .no-data-desc-text {
  color: var(--text-normal-color--);
  font-size: 13px;
  line-height: 22px;
  padding-top: 10px;
  text-align: center;
}
.order-install-btn {
  height: 66px;
  position: absolute;
  right: 0;
  top: 134rpx;
  width: 79px;
}
.search-box {
  display: -webkit-flex;
  display: flex;
  padding: 4px 12px 12px;
}
.search-time {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 18px;
  color: var(--text-main-color--);
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  font-size: 12px;
  line-height: 20px;
  margin-right: 12px;
  padding: 3px 16px;
}
.search-time-active {
  border: 1px solid var(--brand-main-color--);
  color: var(--brand-main-color--);
  font-weight: 600;
}
.not-data {
  background: #fff;
  border-radius: 12px;
  font-family:
    PingFangSC-Regular,
    PingFang SC,
    sans-serif;
  height: 404px;
  margin: 0 12px;
  text-align: center;
}
.not-data-img {
  height: 140px;
  margin-top: 40px;
  vertical-align: middle;
  width: 140px;
}
.not-data-time {
  color: var(--text-main-color--);
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 4px;
}
.not-data-desc {
  color: var(--text-second-color--);
  font-size: 12px;
  line-height: 20px;
}
.not-data .category-btn {
  background: var(--brand-main-color--);
  border-radius: 16px;
  color: #fff;
  font-family:
    PingFangSC-Medium,
    PingFang SC,
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 32px;
  line-height: 32px;
  margin: 16px auto;
  width: 80px;
}
.content {
  height: 404px;
  overflow: scroll;
}

</style>
